From: Ian Campbell Date: Wed, 25 Oct 2006 12:58:30 +0000 (+0100) Subject: PV-to-HVM: Implement compatibility nonseekable_open as a nop on X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15584^2~13 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=c957115a57ccc35365571c1950ef903fab95a434;p=xen.git PV-to-HVM: Implement compatibility nonseekable_open as a nop on kernels before 2.6.9 Signed-off-by: Ian Campbell --- diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index cccdabf258..191777a8ff 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -25,4 +25,8 @@ #define NET_IP_ALIGN 0 #endif +#if defined(_LINUX_FS_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9) +#define nonseekable_open(inode, filp) /* Nothing to do */ +#endif + #endif